#ifndef _DSWOSD_H
#define _DSWOSD_H

#include "base.h"

class CDswosd
{
public:
	CDswosd(LPST_ENV_T pEnv, void* pCapture, int nCh);
	virtual ~CDswosd();
private:
	static void cbTimerTask(int fd, short events, void* ctx){((CDswosd*)ctx)->OnTimer(fd, events);};
	void OnTimer(int fd, short events);
	void ShowTextOsd(char* pText);
	void UpdateTimeOsd(time_t nNow);
private:
	LPST_ENV_T m_pEnv;
	void *m_pCapture;
	int m_nCh;
	time_t m_nOldTime;
	timer_param_t m_nTimer;
};

#endif

